// (c) 2010 OpenSeadragon, (c) 2010 CodePlex Foundation
/// <reference path="embed/OpenSeadragon.pre.js" />

Seadragon._Debug = function () {
    ///<summary>Basic javascript debugging class</summary>
    
};
Seadragon._Debug.prototype = {
    log: function (message, object) {
        ///<summary>Log a message at INFO level</summary>

        if (typeof(console) !== 'undefined' && console != null) {
            if (object) {
                console.log("%s: %o", message, object);
            } else {
                console.log("%s", message);
            }
        }
    },

    info: function (message, object) {
        ///<summary>Log a message at ERROR level</summary>
        this.log(message, object);
    },

    fail: function (message, object) {
        ///<summary>Log a message at FAIL level (e.g. Tile failed to load)</summary>
        this.log(message, object);
    },

    error: function (message, object) {
        ///<summary>Log a message at ERROR level.</summary>
        this.log(message, object);
    }
};
Seadragon.Debug = new Seadragon._Debug();
